//package com.example.mybatisdemo.config;
//
//import org.springframework.amqp.core.Queue;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class RabbitMqConfig {
//    //定义队列名
//    private static final String QUEUE = "queue";
//
//    //创建队列
//    @Bean
//    public Queue queue(){
//        return new Queue(QUEUE,true);
//    }
//
//}
